<%-- 
    Document   : gestionCompra
    Created on : 04-may-2012, 9:49:41
    Author     : sala4
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="css/styleGI.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <link href="css/aristo/jquery-wijmo.css" type="text/css" rel="stylesheet"/>
        <link href="css/wijmo/jquery.wijmo.wijsuperpanel.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijlist.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijtextbox.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijdropdown.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijradio.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijcheckbox.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijdialog.css" rel="stylesheet" type="text/css" />
        <link href="css/wijmo/jquery.wijmo.wijinput.css" rel="stylesheet" type="text/css" />
        <script src="js/external/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
        <script src="js/external/globalize.min.js" type="text/javascript"></script>
        <script src="js/external/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="js/external/jquery.bgiframe-2.1.3-pre.js" type="text/javascript"></script>
        <script src="js/external/jquery.wijmo-open.all.2.0.8.min.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijutil.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijsuperpanel.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijlist.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijdropdown.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijradio.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijcheckbox.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijtextbox.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijdialog.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.plugin.wijtextselection.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijinputcore.js" type="text/javascript"></script>
        <script src="js/wijmo/jquery.wijmo.wijinputnumber.js" type="text/javascript"></script>

        <script>
            function menu(valor)
            {
                location.href='gestionCompra.jsp?opmen='+valor;
                // $('#contenido').load('compra.jsp');
            }
             
        </script>
        <script id="scriptInit" type="text/javascript">
            $(document).ready(function () {
                //$(":wijmo-wijdialog").wijdialog("destroy").remove();
                $("#dialog").wijdialog({
                    autoOpen: true,
                    height: 180,
                    width: 400,
                    contentUrl: 'http://localhost:8080/compra-e-insumos/elegirProveedores.jsp?id=2',
                    modal: true,
                    buttons: {
                        Cerrar: function () {
                            $(this).wijdialog("close");
                        },
                        Aceptar: function () {
                           
                        }
                    },
                    captionButtons: {
                        pin: { visible: false },
                        refresh: { visible: true },
                        toggle: { visible: true },
                        minimize: { visible: true },
                        maximize: { visible: true }
                    }
                });
            });
        </script>
    </head>
    <body>
        <div>
            <ul class="MenuGI">
                <li onclick="menu('elegProv')">Transaccion de Compra</</li>
                <li onclick="editar()">Cotizacion</li>
                <li>Carrito</li>
            </ul>
        </div>
        <%
            String opmen = request.getParameter("opmen");
            if (opmen != null)
                if (opmen.equals("elegProv")) {
        %>
        <jsp:include page="elegirProveedores.jsp" />
        <%   } else if (opmen.equals("cotizacion")) {%>
        <jsp:include page="compra.jsp" />
        <%} else if (opmen.equals("elegirI")) {%>
        <jsp:include page="compra.jsp" />
        <%}%>
        <!--<input type="button" value="Show Alert" onclick="$('#dialog').wijdialog('open')" />
        <div id="dialog" title="Elegir Proveedores">
            <p>

            </p>
        </div>-->
    </body>
</html>
